<?php /* Smarty version Smarty-3.1.8, created on 2012-06-14 06:46:48
         compiled from "../includes/interface/templates\personneAjouter.tpl" */ ?>
<?php /*%%SmartyHeaderCode:235874fd988d876ba72-78940242%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0733aeea33b2bfd4a3c0138356ca63473e22af51' => 
    array (
      0 => '../includes/interface/templates\\personneAjouter.tpl',
      1 => 1339605893,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '235874fd988d876ba72-78940242',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'personne' => 0,
    'listeRoles' => 0,
    'role' => 0,
    'listePays' => 0,
    'pays' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4fd988d8d5eb34_35255546',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4fd988d8d5eb34_35255546')) {function content_4fd988d8d5eb34_35255546($_smarty_tpl) {?><section id="content">

    <h2 class="article"><?php if (isset($_smarty_tpl->tpl_vars['personne']->value)){?><?php echo $_smarty_tpl->getConfigVariable('MODIFIER');?>
 <?php echo $_smarty_tpl->tpl_vars['personne']->value->getPrenom();?>
 <?php echo $_smarty_tpl->tpl_vars['personne']->value->getNom();?>
<?php }else{ ?><?php echo $_smarty_tpl->getConfigVariable('NOUVELLE_PERSONNE');?>
<?php }?></h2>

    <form class="article buttons" name="formulaire" action="?action=<?php if (isset($_smarty_tpl->tpl_vars['personne']->value)){?>modifierPersonne<?php }else{ ?>ajouterPersonne<?php }?>" method="post">

        <input type="hidden" name="id" value="<?php if (isset($_smarty_tpl->tpl_vars['personne']->value)){?><?php echo $_smarty_tpl->tpl_vars['personne']->value->getId();?>
<?php }?>" />



        <fieldset class="form-text break">
            <label><?php echo $_smarty_tpl->getConfigVariable('TITRE');?>
<em>*</em></label>
            <select name="titre">
        <?php if ((isset($_smarty_tpl->tpl_vars['personne']->value))&&($_smarty_tpl->tpl_vars['personne']->value->getTitre()=='Monsieur')){?>}<option value="Monsieur" selected="selected"><?php }else{ ?><option value="Monsieur"><?php }?><?php echo $_smarty_tpl->getConfigVariable('MONSIEUR');?>
</option>
<?php if ((isset($_smarty_tpl->tpl_vars['personne']->value))&&($_smarty_tpl->tpl_vars['personne']->value->getTitre()=='Madame')){?>}<option value="Madame" selected="selected"><?php }else{ ?><option value="Madame"><?php }?><?php echo $_smarty_tpl->getConfigVariable('MADAME');?>
</option>
<?php if ((isset($_smarty_tpl->tpl_vars['personne']->value))&&($_smarty_tpl->tpl_vars['personne']->value->getTitre()=='Mademoiselle')){?>}<option value="Mademoiselle" selected="selected"><?php }else{ ?><option value="Mademoiselle"><?php }?><?php echo $_smarty_tpl->getConfigVariable('MADEMOISELLE');?>
</option>
</select>
</fieldset>

<fieldset class="form-text">
    <label><?php echo $_smarty_tpl->getConfigVariable('NOM');?>
<em>*</em></label>
    <input type="text" name="nom" value="<?php if (isset($_smarty_tpl->tpl_vars['personne']->value)){?><?php echo $_smarty_tpl->tpl_vars['personne']->value->getNom();?>
<?php }?>" id="nom" class="validate[required,custom[onlyLetter],length[0,100]] text-input"/>
</fieldset>

<fieldset class="form-text">
    <label><?php echo $_smarty_tpl->getConfigVariable('PRENOM');?>
<em>*</em></label>
    <input type="text" name="prenom" value="<?php if (isset($_smarty_tpl->tpl_vars['personne']->value)){?><?php echo $_smarty_tpl->tpl_vars['personne']->value->getPrenom();?>
<?php }?>" id="prenom" class="validate[required,custom[onlyLetter],length[0,100]] text-input"/>
</fieldset>

<fieldset class="form-text">
    <label><?php echo $_smarty_tpl->getConfigVariable('TELEPHONE');?>
<em>*</em></label>
    <input type="text" name="telephone" value="<?php if (isset($_smarty_tpl->tpl_vars['personne']->value)){?><?php echo $_smarty_tpl->tpl_vars['personne']->value->getTelephone();?>
<?php }?>" id="telephone" class="validate[required,custom[telephone]] text-input"/>
</fieldset>

<fieldset class="form-text">
    <label><?php echo $_smarty_tpl->getConfigVariable('TELEPHONE2');?>
</label>
    <input type="text" name="telephonesecond" value="<?php if (isset($_smarty_tpl->tpl_vars['personne']->value)){?><?php echo $_smarty_tpl->tpl_vars['personne']->value->getTelephonesecond();?>
<?php }?>" id="telephone2" class="validate[optional,custom[telephone]] text-input"/>

</fieldset>

<fieldset class="form-text">
    <label><?php echo $_smarty_tpl->getConfigVariable('EMAIL');?>
</label>
    <input type="text" name="email" value="<?php if (isset($_smarty_tpl->tpl_vars['personne']->value)){?><?php echo $_smarty_tpl->tpl_vars['personne']->value->getEmail();?>
<?php }?>" id="email" class="validate[optional,custom[email]] text-input" />

</fieldset>

<fieldset class="form-text">
    <label><?php echo $_smarty_tpl->getConfigVariable('ROLE');?>
</label>
    <select name="role" id="role">
        <option value="" selected="selected">---</option>
        <?php if (isset($_smarty_tpl->tpl_vars['listeRoles']->value)){?><?php  $_smarty_tpl->tpl_vars['role'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['role']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['listeRoles']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['role']->key => $_smarty_tpl->tpl_vars['role']->value){
$_smarty_tpl->tpl_vars['role']->_loop = true;
?>
        <option value="<?php echo $_smarty_tpl->tpl_vars['role']->value->getNom();?>
"><?php echo $_smarty_tpl->tpl_vars['role']->value->getNom();?>
</option>
        <?php } ?>
        <?php }?>
    </select>
</fieldset>

<fieldset class="form-text">
    <label><?php echo $_smarty_tpl->getConfigVariable('ATTEST_FISCALE');?>
</label>
    <select name="attestationFiscale" id="attestationFiscale" class="validate[optional]">
<?php if ((isset($_smarty_tpl->tpl_vars['personne']->value))&&($_smarty_tpl->tpl_vars['personne']->value->getAttestationFiscale()==1)){?>}<option value="1" selected="selected"><?php }else{ ?><option value="1"><?php }?><?php echo $_smarty_tpl->getConfigVariable('OUI');?>
</option>
<?php if ((isset($_smarty_tpl->tpl_vars['personne']->value))&&($_smarty_tpl->tpl_vars['personne']->value->getAttestationFiscale()==0)){?>}<option value="0" selected="selected"><?php }else{ ?><option value="0"><?php }?><?php echo $_smarty_tpl->getConfigVariable('NON');?>
</option>
</select>
</fieldset>

<fieldset class="form-text">
    <label><?php echo $_smarty_tpl->getConfigVariable('INSCR_ONLINE');?>
</label>
        <select name="inscriptionOnline" id="InscriptionOnline" class="validate[optional]">
    <?php if ((isset($_smarty_tpl->tpl_vars['personne']->value))&&($_smarty_tpl->tpl_vars['personne']->value->getInscriptionOnline()==1)){?>}<option value="1" selected="selected"><?php }else{ ?><option value="1"><?php }?><?php echo $_smarty_tpl->getConfigVariable('OUI');?>
</option>
<?php if ((isset($_smarty_tpl->tpl_vars['personne']->value))&&($_smarty_tpl->tpl_vars['personne']->value->getInscriptionOnline()==0)){?>}<option value="0" selected="selected"><?php }else{ ?><option value="0"><?php }?><?php echo $_smarty_tpl->getConfigVariable('NON');?>
</option>
</select>

</fieldset>
<?php if (!isset($_smarty_tpl->tpl_vars['personne']->value)){?>

    <fieldset class="form-text">
        <label><?php echo $_smarty_tpl->getConfigVariable('ADRESSE1');?>
 <em>*</em></label>
        <input type="text" name="adresseLigne1" id="adresse1" class="validate[required]"/>
    </fieldset>

    <fieldset class="form-text">
        <label><?php echo $_smarty_tpl->getConfigVariable('ADRESSE2');?>
</label>
        <input type="text" name="adresseLigne2" value=""/>
    </fieldset>

    <fieldset class="form-text break">
        <label><?php echo $_smarty_tpl->getConfigVariable('ADRESSE3');?>
</label>
        <input type="text" name="adresseLigne3" value=""/>
    </fieldset>

    <fieldset class="form-text">
        <label><?php echo $_smarty_tpl->getConfigVariable('NPA');?>
 <em>*</em></label>
        <input type="text" name="npa" id="npa" class="validate[required,custom[onlyNumber],length[4,6]]"/>

    </fieldset>

    <fieldset class="form-text">
        <label><?php echo $_smarty_tpl->getConfigVariable('LOCALITE');?>
<em>*</em></label>
        <input type="text" name="localite" id="localite" class="validate[required,custom[onlyLetter],length[0,100]]"/>
    </fieldset>

    <fieldset class="form-text">
        <label><?php echo $_smarty_tpl->getConfigVariable('REGION');?>
</label>
        <input type="text" name="region" id="region" class="validate[optional,custom[onlyLetter],length[0,25]]"/>
    </fieldset>

    <fieldset class="form-text">
        <label><?php echo $_smarty_tpl->getConfigVariable('PAYS');?>
<em>*</em></label>
            <select name="pays" id="pays" class="validate[optional,length[0,100]]">
            <option value="">---</option>
                <?php if (isset($_smarty_tpl->tpl_vars['listePays']->value)){?>
                    <?php  $_smarty_tpl->tpl_vars['pays'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['pays']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['listePays']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['pays']->key => $_smarty_tpl->tpl_vars['pays']->value){
$_smarty_tpl->tpl_vars['pays']->_loop = true;
?>
                        <option value="<?php echo $_smarty_tpl->tpl_vars['pays']->value->getNom();?>
"><?php echo $_smarty_tpl->tpl_vars['pays']->value->getNom();?>
</option>
                    <?php } ?>
                <?php }?>
            </select>
    </fieldset>
<?php }?>

<fieldset class="form-text long haut">
    <label><?php echo $_smarty_tpl->getConfigVariable('REMARQUE');?>
</label>
    <textarea name="remarque"><?php if (isset($_smarty_tpl->tpl_vars['personne']->value)){?><?php echo $_smarty_tpl->tpl_vars['personne']->value->getRemarque();?>
<?php }?></textarea>
</fieldset>

<fieldset class="form-actions">
    <input type="reset" value="<?php echo $_smarty_tpl->getConfigVariable('ANNULER');?>
" name="Annuler"  onclick=";javascript:return confirm('<?php echo $_smarty_tpl->getConfigVariable('MESSAGE_ANNULER');?>
')" />
<?php if (isset($_smarty_tpl->tpl_vars['personne']->value)){?><input type="submit" class="submit" name="modifierPersonne" value="<?php echo $_smarty_tpl->getConfigVariable('ENREGISTRER');?>
" /><?php }else{ ?><input type="submit" class="submit" name="ajouterPersonne" value="<?php echo $_smarty_tpl->getConfigVariable('ENREGISTRER');?>
" /><?php }?>
</fieldset>
</form>                

</section>
<?php }} ?>